package com.xiehao.springbootmybaits.service;

import com.xiehao.springbootmybaits.dao.StudentMapper;
import com.xiehao.springbootmybaits.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {
    @Autowired
    StudentMapper studentMapper;
    public Student getStudent(Integer id) {
        return studentMapper.getStduent(id);
    }
}
